// ==========  投诉相关 ============//
import constant from '@/utils/constant'
import request from '@/utils/request'


/**
 * 获取投诉已办
 */
export function getFinishComplaints(data) {
	uni.showLoading({
		title: '加载中',
		mask: true,
	})
	return request({
		url: constant.getFinishComplaints,
		method: 'GET',
		data
	})
}
/**
 * 获取投诉待办
 */
export function getListAuditComplaints(data) {
	uni.showLoading({
		title: '加载中',
		mask: true,
	})
	return request({
		url: constant.getListAuditComplaints,
		method: 'GET',
		data
	})
}


/**
 * 获取投诉详情流程
 */
export function listWorkflowAuditInfo(data) {
	uni.showLoading({
		title: '加载中',
		mask: true,
	})
	return request({
		url: constant.listWorkflowAuditInfo,
		method: 'GET',
		data
	})
}
/**
 * 投诉办结
 */
export function auditComplaint(data) {
	uni.showLoading({
		title: '加载中',
		mask: true,
	})
	return request({
		url: constant.auditComplaint,
		method: 'POST',
		data
	})
}
